//
//  CYCuiShouCell.m
//  CreditAddressBook
//
//  Created by mosu on 2016/9/27.
//  Copyright © 2016年 Lee. All rights reserved.
//

#import "CYCuiShouCell.h"
#import "UIImageView+WebCache.h"
#import "CYURL.h"

@implementation CYCuiShouCell


-(void) setModel:(CYCuiShouModel *)model{
     self.nameLab.text = [NSString stringWithFormat:@"违约人：%@", model.name];
     self.titleLab.text = model.title;
     self.contentLab.text = model.content;
     self.timeLab.text = model.createTime;
     
     [self.headImageView sd_setImageWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"http://www.credit-manage.com/%@",model.evidencePhotos]]];

     
//     self.headImageView.image = [UIImage imageNamed:[NSString stringWithFormat:@"http://www.credit-manage.com/%@",model.evidencePhotos]];
     
     
     if (model.statusId.intValue == 1) {
         //已完成
          self.statueImageView.image = [UIImage imageNamed:@"催收完成"];
          
     }else if (model.statusId.intValue == 2){
     //已下架
          self.statueImageView.image = [UIImage imageNamed:@"下架"];
          
     
     } else{
          self.statueImageView.image = [UIImage imageNamed:@"催收中"];
     }
     
     
     
}

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
